package com.hmall.api.pay;

import com.hmall.api.pay.dto.PayOrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @Author mr.Du
 * @Date 2025/6/23 2025/6/23
 */
@FeignClient(value = "pay-service", fallbackFactory = PayClientFallbackFactory.class)
public interface PayClient {

    /**
     * 根据交易订单id查询支付单
     *
     * @param id
     * @return
     */
    @GetMapping("/pay-orders/biz/{id}")
    public PayOrderDTO queryPayOrderByBizOrderNo(@PathVariable("id") Long id);
}
